package com.ttl.sbgl.loginback.entity;

import jakarta.persistence.*;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

//用户实体
@Table(name ="users") //表示数据库的表
@Entity //表明此类是个实体
public class User {
//主键前要添加注释
    @Id
    private String name;

    private String password;

    private String role = "student" ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
